package cc.comac.mom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipPatrolCheckWorkOrderService;
import cc.comac.mom.bean.EquipPatrolCheckWorkOrder;
import cc.comac.mom.bean.EquipPatrolCheckWorkOrderBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.datahandlers.entity.EquipPatrolCheckWorkOrderDataHandler;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class EquipPatrolCheckWorkOrderServiceImpl implements EquipPatrolCheckWorkOrderService{

	@Autowired
	private EquipPatrolCheckWorkOrderDataHandler equipPatrolCheckWorkOrderDataHandler;
	@Override
	public ResultBean selectByFields(@RequestBody EquipPatrolCheckWorkOrderBean obj) {
		ResultBean resultBean = new ResultBean(true);
		ResultDev selectByFields = equipPatrolCheckWorkOrderDataHandler.selectByFields(obj);
		resultBean.setObject(selectByFields);
		return resultBean;
	}
	@Override
	public ResultBean updateExecuteTime(@RequestBody EquipPatrolCheckWorkOrder obj) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderDataHandler.updateExecuteTime(obj);
	}
	@Override
	public ResultBean deleteBatch(@RequestBody List<Long> ids) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderDataHandler.deleteBatch(ids);
	}
	@Override
	public ResultBean planStartExecute(@RequestBody EquipPatrolCheckWorkOrder obj) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderDataHandler.planStartExecute(obj);
	}

}
